<?PHP
header("Content-type:text/html;charset=utf-8");
if (ini_get('magic_quotes_gpc')) {
	function stripslashesRecursive(array $array){
		foreach ($array as $k => $v) {
			if (is_string($v)){
				$array[$k] = stripslashes($v);
			} else if (is_array($v)){
				$array[$k] = stripslashesRecursive($v);
			}
		}
		return $array;
	}
	$_GET = stripslashesRecursive($_GET);
	$_POST = stripslashesRecursive($_POST);
}

define('APP_DEBUG',true); // 开启调试模式

// 定义应用目录
define('APP_PATH','./');
define("WEB_ROOT", dirname(__FILE__)."/");
define("USER_ROOT","/User");
define("HOME_ROOT","/Home");
define("NEWADMIN_ROOT","/newAdmin");
define('HTML_PATH', './');
define('RUNTIME_PATH','./data/Runtime/');

define("THINKCMF_CORE_TAGLIBS", 'cx,Common\Lib\Taglib\TagLibHome');
define('CRONS_PATH', __DIR__.'/Common/Cron/');
require './ThinkPHP/ThinkPHP.php';
?>